Options +FollowSymLinks
RewriteEngine on

# carro
RewriteRule ^n/len/(.+)/sc/(.+)/msj/(.+)$ web/index.php?len=$1&sc=$2&msj=$3 [L,QSA]
RewriteRule ^n/len/(.+)/sc/(.+)/bor/(.+)$ web/index.php?len=$1&sc=$2&bor=$3 [L,QSA]
RewriteRule ^n/len/(.+)/sc/(.+)/borc/(.+)$ web/index.php?len=$1&sc=$2&borc=$3 [L,QSA]
RewriteRule ^n/len/(.+)/sc/(.+)/adc/(.+)$ web/index.php?len=$1&sc=$2&adc=$3 [L,QSA]
RewriteRule ^n/len/(.+)/sc/(.+)$ web/index.php?len=$1&sc=$2 [L,QSA]
RewriteRule ^n/len/(.+)/scc/(.+)$ web/index.php?len=$1&scc=$2 [L,QSA]
RewriteRule ^n/len/(.+)/scv/(.+)/pid/(.+)$ web/index.php?len=$1&scv=$2&pid=$3 [L,QSA]
RewriteRule ^n/len/(.+)/scv/(.+)$ web/index.php?len=$1&scv=$2 [L,QSA]

# archivos privados
RewriteRule ^n/len/(.+)/priv/(.+)$ web/index.php?len=$1&priv=$2 [L,QSA]

# reproductor multimedia
RewriteRule ^n/len/(.+)/rp/(.+)$ web/index.php?len=$1&rp=$2 [L,QSA]
RewriteRule ^n/len/(.+)/rpp/(.+)$ web/index.php?len=$1&rpp=$2 [L,QSA]

# destacados
RewriteRule ^n/len/(.+)/des/(.+)/sig/(.+)/pag/(.+)$ web/index.php?len=$1&des=$2&sig=$3&pag=$4 [L,QSA]
RewriteRule ^n/len/(.+)/des/(.+)$ web/index.php?len=$1&des=$2 [L,QSA]

# links
RewriteRule ^n/len/(.+)/ak/(.+)/sig/(.+)/pag/(.+)$ web/index.php?len=$1&ak=$2&sig=$3&pag=$4 [L,QSA]
RewriteRule ^n/len/(.+)/ak/(.+)$ web/index.php?len=$1&ak=$2 [L,QSA]

# ver mas
RewriteRule ^n/len/(.+)/vm/(.+)/sig/(.+)/pag/(.+)$ web/index.php?len=$1&vm=$2&sig=$3&pag=$4 [L,QSA]
RewriteRule ^n/len/(.+)/vm/(.+)$ web/index.php?len=$1&vm=$2 [L,QSA]

# categorias
RewriteRule ^n/len/(.+)/cat/(.+)/sig/(.+)/pag/(.+)$ web/index.php?len=$1&cat=$2&sig=$3&pag=$4 [L,QSA]
RewriteRule ^n/len/(.+)/cat/(.+)/(.+)$ web/index.php?len=$1&cat=$2 [L,QSA]
RewriteRule ^n/len/(.+)/cat/(.+)$ web/index.php?len=$1&cat=$2 [L,QSA]

# categorias privadas
RewriteRule ^n/len/(.+)/catp/(.+)/sig/(.+)/pag/(.+)$ web/index.php?len=$1&catp=$2&sig=$3&pag=$4 [L,QSA]
RewriteRule ^n/len/(.+)/catp/(.+)/(.+)$ web/index.php?len=$1&catp=$2 [L,QSA]
RewriteRule ^n/len/(.+)/catp/(.+)$ web/index.php?len=$1&catp=$2 [L,QSA]

# canales
RewriteRule ^n/len/(.+)/can/(.+)/sig/(.+)/pag/(.+)$ web/index.php?len=$1&can=$2&sig=$3&pag=$4 [L,QSA]
RewriteRule ^n/len/(.+)/can/(.+)/(.+)$ web/index.php?len=$1&can=$2 [L,QSA]
RewriteRule ^n/len/(.+)/can/(.+)$ web/index.php?len=$1&can=$2 [L,QSA]

# catalogos
RewriteRule ^n/len/(.+)/cal/(.+)/sig/(.+)/pag/(.+)$ web/index.php?len=$1&cal=$2&sig=$3&pag=$4 [L,QSA]
RewriteRule ^n/len/(.+)/cal/(.+)/(.+)$ web/index.php?len=$1&cal=$2 [L,QSA]
RewriteRule ^n/len/(.+)/cal/(.+)$ web/index.php?len=$1&cal=$2 [L,QSA]

# buscador etiquetas
RewriteRule ^n/len/(.+)/bus/(.+)/tip/(.+)/sig/(.+)/pag/(.+)$ web/index.php?len=$1&bus=$2&tip=$3&sig=$4&pag=$5 [L,QSA]
RewriteRule ^n/len/(.+)/bus/(.+)/tip/(.+)$ web/index.php?len=$1&bus=$2&tip=$3 [L,QSA]
RewriteRule ^n/len/(.+)/bup/(.+)/tip/(.+)/sig/(.+)/pag/(.+)$ web/index.php?len=$1&bup=$2&tip=$3&sig=$4&pag=$5 [L,QSA]
RewriteRule ^n/len/(.+)/bup/(.+)/tip/(.+)$ web/index.php?len=$1&bup=$2&tip=$3 [L,QSA]

# buscador
RewriteRule ^n/len/(.+)/bus/(.+)/sig/(.+)/pag/(.+)$ web/index.php?len=$1&bus=$2&sig=$3&pag=$4 [L,QSA]
RewriteRule ^n/len/(.+)/bus/(.+)$ web/index.php?len=$1&bus=$2 [L,QSA]
RewriteRule ^n/len/(.+)/bup/(.+)/sig/(.+)/pag/(.+)$ web/index.php?len=$1&bup=$2&sig=$3&pag=$4 [L,QSA]
RewriteRule ^n/len/(.+)/bup/(.+)$ web/index.php?len=$1&bup=$2 [L,QSA]

# traducciones
RewriteRule ^n/len/(.+)/ent/(.+)/at/(.+)/sig/(.+)/pag/(.+)$ web/index.php?len=$1&ent=$2&at=$3&sig=$4&pag=$5 [L,QSA]
RewriteRule ^n/len/(.+)/ent/(.+)/at/(.+)$ web/index.php?len=$1&ent=$2&at=$3 [L,QSA]
RewriteRule ^n/len/(.+)/prd/(.+)/at/(.+)/sig/(.+)/pag/(.+)$ web/index.php?len=$1&prd=$2&at=$3&sig=$4&pag=$5 [L,QSA]
RewriteRule ^n/len/(.+)/prd/(.+)/at/(.+)$ web/index.php?len=$1&prd=$2&at=$3 [L,QSA]

# comentarios
RewriteRule ^n/len/(.+)/ent/(.+)/cmsj/(.+)$ web/index.php?len=$1&ent=$2&cmsj=$3 [L,QSA]
RewriteRule ^n/len/(.+)/entp/(.+)/cmsj/(.+)$ web/index.php?len=$1&entp=$2&cmsj=$3 [L,QSA]
RewriteRule ^n/len/(.+)/prd/(.+)/cmsj/(.+)$ web/index.php?len=$1&prd=$2&cmsj=$3 [L,QSA]

# items desde portada
RewriteRule ^n/len/(.+)/sig/(.+)/pag/(.+)$ web/index.php?len=$1&sig=$2&pag=$3 [L,QSA]

# paginas
RewriteRule ^n/len/(.+)/ap/(.+)/(.+)$ web/index.php?len=$1&ap=$2 [L,QSA]
RewriteRule ^n/len/(.+)/ap/(.+)$ web/index.php?len=$1&ap=$2 [L,QSA]

# paginas etiquetas
RewriteRule ^n/len/(.+)/tq/(.+)$ web/index.php?len=$1&tq=$2 [L,QSA]

# add adt
RewriteRule ^n/len/(.+)/ad/(.+)/msj/(.+)$ web/index.php?len=$1&ad=$2&msj=$3 [L,QSA]
RewriteRule ^n/len/(.+)/adt/(.+)/msj/(.+)$ web/index.php?len=$1&adt=$2&msj=$3 [L,QSA]
RewriteRule ^n/len/(.+)/ad/(.+)$ web/index.php?len=$1&ad=$2 [L,QSA]
RewriteRule ^n/len/(.+)/adt/(.+)$ web/index.php?len=$1&adt=$2 [L,QSA]

# adm
RewriteRule ^n/len/(.+)/sr/(.+)$ web/index.php?len=$1&sr=$2 [L,QSA]

# intranet form
RewriteRule ^n/len/(.+)/fpp/(.+)$ web/index.php?len=$1&fpp=$2 [L,QSA]

# item
RewriteRule ^n/len/(.+)/ent/(.+)/(.+)$ web/index.php?len=$1&ent=$2 [L,QSA]
RewriteRule ^n/len/(.+)/ent/(.+)$ web/index.php?len=$1&ent=$2 [L,QSA]

# item privado
RewriteRule ^n/len/(.+)/entp/(.+)/(.+)$ web/index.php?len=$1&entp=$2 [L,QSA]
RewriteRule ^n/len/(.+)/entp/(.+)$ web/index.php?len=$1&entp=$2 [L,QSA]

# item producto
RewriteRule ^n/len/(.+)/prd/(.+)/(.+)$ web/index.php?len=$1&prd=$2 [L,QSA]
RewriteRule ^n/len/(.+)/prd/(.+)$ web/index.php?len=$1&prd=$2 [L,QSA]

# entrada
RewriteRule ^n/len/(.+)$ web/index.php?len=$1 [L,QSA]

# canal rss
RewriteRule ^canal/len/(.+)$ web/canal.php?len=$1 [L,QSA]

# gestor
RewriteRule ^gestor$ web/gestor.php?ads=1 [L,QSA]

# seo
RewriteRule ^n/(.+)$ web/index.php?mr=$1 [L,QSA]